package day01;

/**
 * @author Jetwang
 * @version 1.0
 * @since 2023/3/11 13:15
 */
public class LinkedListQueueTest {
    public static void main(String[] args) {
        LinkedListQueue<Integer> queue = new LinkedListQueue<>(3);
        System.out.println(queue.peek());
        System.out.println("=====");
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        System.out.println(queue.offer(4)); // false
        queue.forEach(System.out::println);
        System.out.println("=====");
        System.out.println(queue.peek());
        System.out.println("=====");
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
    }
}
